package com.atguigu.feign.clients;

import com.atguigu.common.utils.R;
import com.atguigu.feign.to.SkuReductionTo;
import com.atguigu.feign.to.SpuBoundTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-discount")
public interface DiscountService {

    @PostMapping("/discount/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    //保存sku 优惠/满减等信息
    @PostMapping("/discount/skufullreduction/saveSkuReductionTo")
    R saveSkuReductionTo(SkuReductionTo skuReductionTo);

}
